#include<stdio.h>
void meun()
{
	printf("************************************\n");
	printf("**********1.sum    2.sub ***********\n");
	printf("**********3.mul    4.div ***********\n");
	printf("**********    0.exit    ************\n");
}
 
int main()
{
	int a,b,c,d;
	do 
	{
		meun(); 
		scanf("%d", &a);
		switch (a)
		{
		case 1:
			printf("请输入计算数：");
			scanf("%d %d", &b, &c);
			 d = b + c;
			printf("%d\n", d);
			break;
		case 2:
			printf("请输入计算数：");
			scanf("%d %d", &b, &c);
			 c = b - c;
			printf("%d\n", d);
			break;
		case 3:
			printf("请输入计算数：");
			scanf("%d %d", &b, &c);
			 d = b * c;
			printf("%d\n", d);
			break;
		case 4:
			printf("请输入计算数：");
			scanf("%d %d", &b, &c);
			 d = b / c;
			printf("%d\n", d);
			break;
		case 0:
			printf("退出程序");
			break;
		default:
			printf("输入错误，请重新输入");
		}
	}while (a);
	
 
	return 0;
}
